package com.zixuan.sina.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value = "user_relaction_ship")
public class UserRelactionShip {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 好友id
     */
    private String friendId;
    /**
     * 是否为好友 1 是 0 不是
     */
    private Integer relStatus;
    /**
     * userId对friendId别名
     */
    private String aliasName;
    /**
     * friendId对userId的别名
     */
    private String aliasFriend;
    /**
     * 申请验证信息
     */
    private String reqMsg;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

}
